package com.butnet.myframe.creator;

import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * 类信息
 * 
 * @author Administrator
 * 
 */
public class ClassInfo {
	private Map<String, Object> attributes = new LinkedHashMap<String, Object>();
	/**
	 * 包名
	 */
	private String packageName;
	/**
	 * 类名
	 */
	private String name;
	/**
	 * 所有字段
	 */
	private List<FieldInfo> fields = new LinkedList<FieldInfo>();
	/**
	 * 引用
	 */
	private List<String> imports = new LinkedList<String>();
	/**
	 * 类注释
	 */
	private String commet;
	
	public String getFname(){
		return (name.charAt(0)+"").toLowerCase()+name.substring(1);
	}

	public String getCommet() {
		return commet;
	}

	public void setCommet(String commet) {
		this.commet = commet;
	}

	public List<String> getImports() {
		return imports;
	}

	public void setImports(List<String> imports) {
		this.imports = imports;
	}

	public String getPackage() {
		return packageName;
	}

	public void setPackage(String packageName) {
		this.packageName = packageName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<FieldInfo> getFields() {
		return fields;
	}

	public void setFields(List<FieldInfo> fields) {
		this.fields = fields;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}
}
